<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}">
</head>
<body>


<nav class="navbar navbar-expand-lg   navbar-dark bg-primary">
    <a class="navbar-brand" href="#">Navbar</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
            <li class="nav-item active">
                <a class="nav-link" href="#" th:href="@{/}">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#" th:href="@{/login}">登录</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#" th:href="@{/welcome}">welcome</a>
            </li>
        </ul>
    </div>
</nav>
<div class="container">
    <div class="row">


        <div class="card col-md-4 offset-md-1"  >
            <div class="card-body">
                <h5 class="card-title">普通Session变量</h5>
                <h6 class="card-subtitle mb-2 text-muted">从Session中直接取出，不能表明它被共享了</h6>
                <h3 class="card-text"  th:text=" ${time} ">
                    Some quick example text </h3>
            </div>
        </div>

        <div class="card col-md-4 offset-md-2"  >
            <div class="card-body">
                <h5 class="card-title">共享的Session变量</h5>
                <h6 class="card-subtitle mb-2 text-muted">从两个不同端口启动本项目，应该就可以看不同的端口号了</h6>
                <h3 class="card-text"  th:text=" ${shared} ">
                    Some quick example text </h3>
            </div>
        </div>

    </div>


</div>


</body>
<script th:src="@{/webjars/jquery/3.0.0/jquery.min.js}"></script>
<script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
</html>